package com.shop.shoporder.service;

import com.shop.shoporder.entity.GroupbuyParticipate;


import java.util.List;

public interface GroupbuyParticipateService {

    int deleteByPrimaryKey(int participateId);

    int insert(GroupbuyParticipate record);

    int insertSelective(GroupbuyParticipate record);

    GroupbuyParticipate selectByPrimaryKey(int participateId);

    int updateByPrimaryKeySelective(GroupbuyParticipate record);

    int updateByPrimaryKey(GroupbuyParticipate record);

    //查询该团购的参与人数
    List<GroupbuyParticipate> getGroupbuyParticipate(int groupbuyId);

    //查询用户参与的团购但没有成功
    GroupbuyParticipate getGroupbuyPartied(int groupbuyId,  int userNoId);
}
